package ru.geyes.screw.utils;

/**
 * @author alex
 * @date 07.11.2008
 */
public class EqualsUtils {

    /**
     * Null safe Check equals for 2 objects.<br>
     *
     * Warn: both null object are not equals
     */
    public static boolean isEquals(Object a, Object b) {
        if (a == b) return true;
        if (!(a != null && b != null)) return false;
        if (a.getClass() != b.getClass()) return false;
        return a.equals(b);
    }
}
